package com.yumeko.util;

/**
 * @program: ssp
 * @description:
 * @author: Zheng Hao
 * @create: 2020-01-15 16:30
 */
public class ResponseData<T> {
   private Integer code;
    private String msg;
    private Integer count;
    private T Data;

    public ResponseData(T data) {
        Data = data;
    }

    public ResponseData(Integer count, T data) {
        this.code = 0;
        this.msg = "成功";
        this.count = count;
        Data = data;
    }

    public ResponseData(Integer code, String msg, Integer count, T data) {
        this.code = code;
        this.msg = msg;
        this.count = count;
        Data = data;
    }

    public T getData() {
        return Data;
    }

    public void setData(T data) {
        Data = data;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
